textbtree: Avoid line vs char count confusion
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:17:55 +0000 (00:17 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:17:55 +0000 (00:17 -0500)
The post_insert_fixup helper function was confused about
its argument order.

Pointed out in https://www.viva64.com/en/b/0793/

gtk/gtktextbtree.c

index 3714b6a7e3c36cfa98459e1811901765ca83fa80..5f87ae70add835289c4fccfc163fb53c3e9cbc84 100644 (file)
@@ -257,8 +257,8 @@ static void              gtk_text_btree_rebalance                (GtkTextBTree
 static GtkTextLine     * get_last_line                           (GtkTextBTree     *tree);
 static void              post_insert_fixup                       (GtkTextBTree     *tree,
                                                                   GtkTextLine      *insert_line,
-                                                                  int               char_count_delta,
-                                                                  int               line_count_delta);
+                                                                  int               line_count_delta,
+                                                                  int               char_count_delta);
 static void              gtk_text_btree_node_adjust_toggle_count (GtkTextBTreeNode *node,
                                                                   GtkTextTagInfo   *info,
                                                                   int               adjust);